package com.suzj.extraenchantments.potion;


import net.minecraft.world.effect.MobEffect;
import net.minecraft.world.effect.MobEffectCategory;


public class BaseEffect extends MobEffect {
    private boolean instant;
    private boolean isRegistered;

    public BaseEffect(MobEffectCategory type, int color, boolean isInstant) {
        super(type, color);
        this.isRegistered = false;
        this.instant = isInstant;
    }

    public boolean isInstantenous() {
        return false;
    }

    protected boolean canApplyEffect(int remainingTicks, int level) {
        if (!isInstantenous()) {
            Thread.dumpStack();
            return false;
        }
        return false;
    }

    public BaseEffect onRegister() {
        this.isRegistered = true;
        return this;
    }

    public boolean isRegistered() {
        return this.isRegistered;
    }
}